import time;
class LogFile:
	def __init__(self):
		self.f = None;
	def InitLogging(self, filename):
		self.f = open(filename, "a+");
	def LogString(self, s):
		self.f.write(time.strftime("[%Y-%m-%d %H:%M:%S] ") + str(s) + "\n");
	def Close(self):
		self.f.close();
